package br.org.credfaz.sis.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import br.org.credfaz.sis.dao.TceEnderecoClienteDAO;
import br.org.credfaz.sis.modelo.TceEnderecoCliente;

public class AtualizaTceEnderecoAction {
	
private List<TceEnderecoCliente> enderecos;
	
	@Action(value="atualizaEnderecos", results= {
			@Result(name="ok", type="redirectAction", params= {"actionName", "atualizaLancamentocca"})
	})
	public String execute(){
		enderecos = new TceEnderecoClienteDAO().lista();
		return "ok";
	}
	public List<TceEnderecoCliente> getTceEnderecoClientes(){
		return enderecos;
	}

}
